﻿@{
    Layout = null;
}

<div class="panel no-border">
    <div id="sub-title" class="panel-header bg-lightBlue fg-white"><i class="icon-locked-2"></i> DATA SECURITY</div>

    <form class="panel no-border no-padding" data-ng-init="getSecurityParameter()">
        <fieldset>
            <legend>Security Settings</legend>
            <div class="input-control select" data-role="input-control">
                <label for="pkiType">
                    PKI Type
                    <select style="width:200px" class="form-control" data-ng-model="securityParameter.pkiType" data-ng-options="p.id as p.name for p in pkiList"></select>
                </label>
            </div>

            <label>Public Key Location</label>
            <div class="input-control text" data-role="input-control">
                <input type="text" data-ng-model="securityParameter.publicKeyPath" placeholder="Public Key's directory name">
                <button class="btn-clear" tabindex="-1"></button>
            </div>

            <label>Private Key Location</label>
            <div class="input-control text" data-role="input-control">
                <input type="text" data-ng-model="securityParameter.privateKeyPath" placeholder="Private Key's directory name">
                <button class="btn-clear" tabindex="-1"></button>
            </div>

            <label>CA Service <small class="text-muted">ex.http://localhost:1234/CA</small></label>
            <div class="input-control text" data-role="input-control">
                <input type="text" data-ng-model="securityParameter.caUrl" placeholder="Certificate Authority Service URL">
                <button class="btn-clear" tabindex="-1"></button>
            </div>

            <label>RA Service <small class="text-muted">ex.http://localhost:5678/RA</small></label>
            <div class="input-control text" data-role="input-control">
                <input type="text" data-ng-model="securityParameter.raUrl" placeholder="Registration Authority Service URL">
                <button class="btn-clear" tabindex="-1"></button>
            </div>

            <label>VA Service <small class="text-muted">ex.http://localhost:5000/VA</small></label>
            <div class="input-control text" data-role="input-control">
                <input type="text" data-ng-model="securityParameter.vaUrl" placeholder="Verification Authority Service URL">
                <button class="btn-clear" tabindex="-1"></button>
            </div>

            <div>
                <input class="default" type="submit" data-ng-click="updateSecurity(securityParameter)" value="SUBMIT">
                <input class="default" type="reset" value="CLEAR">
                <input class="default" type="button" data-ng-click="getSecurityParameter()" value="CANCEL">
            </div>

            <div style="margin-bottom: 20px" />

        </fieldset>
    </form>
</div>
